import type { FilterItem } from '@/components/FilterBar/types'

export const exampleOptions: FilterItem[] = [
  {
    label: '航班号',
    prop: 'flno',
    type: 'input',
    span: 7,
    defaultValue: '',
    inputProps: {
      clearable: true,
      placeholder: '请输入航班号'
    },
    events: {
      change: (value: any, evt: any) => { }
    }
  },
  {
    label: '航空公司',
    prop: 'sfaw',
    type: 'input',
    span: 7,
    inputProps: {
      clearable: true,
      placeholder: '请输入航空公司'
    },
    events: {
      change: (value: any, evt: any) => { }
    }
  },
  {
    label: '不正常原因',
    prop: 'abrn',
    type: 'input',
    span: 7,
    inputProps: {
      clearable: true,
      placeholder: '请输入不正常原因'
    },
    events: {
      change: (value: any, evt: any) => { }
    }
  },
]

export const buttonOptions: FilterItem[] = [
  {
    label: '', // 后续由接口获取下拉数据
    prop: 'button',
    type: 'radioButton',
    span: 14,
    defaultValue: '',
    inputProps: {
      class:'my-radio-btn',
      options: [
        { label: '进港', value: 'A' },
        { label: '出港', value: 'D' }
      ]
    },
    events: {
      change: (value: any, evt: any) => { }
    }
  }
]
